package org.example.learningplanassistant.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 社交论坛表
 * </p>
 *
 * @author gcbsh
 * @since 2025-03-25
 */
@Getter
@Setter
@TableName("forum_posts")
public class ForumPosts implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 用户id
     */
    @TableField("user_id")
    private Integer userId;

    /**
     * 社交论坛标题
     */
    @TableField("title")
    private String title;

    /**
     * 内容
     */
    @TableField("content")
    private String content;

    /**
     * 发表时间
     */
    @TableField("created_at")
    private LocalDateTime createdAt;

    /**
     * 修改时间
     */
    @TableField("updated_at")
    private LocalDateTime updatedAt;

    /**
     * 评论数量
     */
    @TableField("comments")
    private Integer comments;

    /**
     * 点赞数量
     */
    @TableField("likes")
    private Integer likes;

    /**
     * 帖子的照片，最多9张，多张以","隔开
     */
    @TableField("images")
    private String images;
}
